﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization.Json;
using System.Net;
using System.Collections.Specialized;
using System.IO;

namespace RESTAPI_Test_Client
{
    internal abstract class RESTAPIRunnerBase
    {
        internal static WebClient client = new WebClient();
        internal static NameValueCollection values = new NameValueCollection();


        internal abstract void RunSpecificRunnerAPILogic();


        internal readonly string emailForWebsite;
        internal readonly string passwordForWebsite;
        internal readonly string openIdForWebsite;


        public RESTAPIRunnerBase()
        {
            emailForWebsite = Utilities.GetStringForWebSiteCall("sacha.barber@gmail.com"); //Encrypt using same rules as website see App.Config and Web.Config
            passwordForWebsite = Utilities.GetStringForWebSiteCall("sachabarber"); //Encrypt using same rules as website see App.Config and Web.Config

            //This Guid string was obtained by me monitoring the Guid that OpenId web site 
            //created in the Tuple<MembershipCreateStatus, String> CreateUser(string userName, string email, string OpenID)
            //method, where the line is as follows:
            //
            //  Generate a password token value
            //  Guid passGuid = Guid.NewGuid();
            //  Guid password = StringToGUID(passGuid.ToString());
            //openIdForWebsite = Utilities.GetStringForWebSiteCall("a2643469-305f-4a54-b94f-33b9f9b25f34"); //Encrypt using same rules as website see App.Config and Web.Config
        }


        


    }
}
